package Test_319_6;

public class Chinese extends Student{
    //属性
    double speeches;//演讲
    double works;//作品


    @Override
    public Double CourseScore() {
        Double score = null;

        score = MyUtils.getDaulbeValue(this.getSpeeches())*0.35
                +MyUtils.getDaulbeValue(this.getWorks())*0.35
                +MyUtils.getDaulbeValue(this.getMidterms())*0.15
                +MyUtils.getDaulbeValue(this.getFinals())*0.15;

        return score == 0.0 ? null:score;
    }



    //getter和setter

    public double getSpeeches() {
        speeches = speeches*0.35;
        return speeches;
    }

    public void setSpeeches(double speeches) {
        this.speeches = speeches;
    }

    public double getWorks() {
        works = works * 0.35;
        return works;
    }

}
